package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-17
 * Time: 13:21
 */
public interface IShape {
    public static final int a = 10;
    //public static final 是默认值
    int c = 20;

    public abstract void draw();
    //public abstract 方法的默认值
    //void draw2();
    //抽象方法不能具体实现
    //想要实现举要加上default 或者 static
    static void draw3(){
        System.out.println("static方法被实现了");
    }
    default void draw4(){
        System.out.println("default方法实现了");
    }
}
